<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no">
    <title>微信支付</title>
    <script src="jquery-3.2.1.min.3.js"></script>
    <style>
        button { 
            width: 90%; 
            height: 45px; 
            display: block;
            margin: 0 auto; 
            border-radius: 5px; 
            font-size: 14px; 
            color: #fff; 
            background-color: #000; 
            border: 0; 
            margin-bottom: 30px;
            margin-top: 10px;
        }
    </style>
</head>
<body style="100%;margin:0 auto;">
    <p style="text-align: center;height: 35px;line-height: 35px;">请输入购买的数量</p>
    <div>
        <input type="text" id="num" style="width:80%;height:35px;text-align: center;display: block;margin: 0 auto; line-height: 35px;font-size: 26px;" value=""/>
    </div>
    <button id="wx">马上支付</button>
    <script type="text/javascript">
        $(document).ready(function(){
            $('#wx').click(function(){
                var num = $('#num').val();
                window.location.href="http://www.xiaomutong.com.cn/pay/zhifu/native.php?money="+num;
            });
        });
    </script>
</body>
</html>